<?php

require_once 'cf/shop.inc';

define('SHOW_PRODUCTS_ON_PAGE', 20);

function groupToCrumbs($group)
{
	$crumbs = array();
	$ancestors = new AncestorGroups($group->id());
	foreach ($ancestors as $ancestor) {
		$crumbs[$ancestor->name()] = '/category/'.$ancestor->code();
	}
	$crumbs[$group->name()] = '/category/'.$group->code();
	return $crumbs;
}

?>